<template>
<div class="modal">
  <div class="mask">

  </div>
  <div class="Main">
    <header>
      <slot name="header"></slot>
    </header>

    <main class="middle">
      <slot name="man"></slot>
    </main>

    <footer>
      <slot name="footer"></slot>
    </footer>
  </div>
</div>
</template>

<script>
export default {
  name: '',
  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
  .modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    
    .mask{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 9;
      background: rgba(0, 0, 0, 0.3);
    }
    .Main{
      position: relative;
      margin: 25vh auto;
      width: 800px;
      z-index: 99;
      background: #fff;
      border-radius: 5px;
      
      header{
        height: 68px;
        line-height: 68px;
        text-align: center;
        background: rgb(79, 77, 77);
        color: #fff;
        
        border-radius: 5px 5px 0 0;
     

      }
      .middle{
       margin-top: 80px;
      height:400px ;
     
      margin-left: 40px;
      font-size: 24px;
      line-height: 60px;
      >.middle-spanbox{
        line-height: 60px;
        input{
          width: 300px;
          
        }
      }
      }
      >footer{
        height: 80px;
        border-top: 1px solid #ddd;
      }
    }
  }
</style>
